<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/sysReport/report.js"></script>

    <script type="text/javascript">
        $(function(){
            $("#dotted :last ").remove()
        });
    </script>
    <script type="text/javascript">
        window.onload=function name(){
            window.print();
            window.close();
        }
    </script>
    <style type="text/css">
        .tr1 td{
            border: solid 1px #000000;
        }
    </style>

</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="720px" >

    <c:forEach items="${status}" var="status">
        <tr>
            <th colspan='13'  style="font-size: 24px;">${status.Company.COM_FLLNAME}销售退货单</th>
        </tr>
        <tr height=10px>
        </tr>

        <tr class="tr1">
            <td colspan=2 style="text-align:right"><strong>客户：</strong></td>
            <td colspan=3>&nbsp;&nbsp;${status.data.CLIENTS_NAME}</td>
            <td style="text-align:right"><strong>销售单号：</strong></td>
            <td colspan=3>&nbsp;&nbsp;${status.data.PX_CODE}</td>
            <td style="text-align:right"><strong>退货类型：</strong></td>
            <td colspan=3>&nbsp;&nbsp;${status.data.INPUT_DATE}</td>
        </tr>
        <tr class = "tr1">
            <td colspan=2 style="text-align:right"><strong>客户编号:</strong></td>
            <td colspan=3 class="td_left" >&nbsp;&nbsp;${status.data.O_ID_LASTGR}</td>
            <td style="text-align:right"><strong>总&nbsp;码&nbsp;洋:</strong></td>
            <td colspan=3 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_MONEY}</td>
            <td style="text-align:right"><strong>总&nbsp;实&nbsp;洋:</strong></td>
            <td colspan=3 class="td_left" width="95" >&nbsp;&nbsp;${status.data.REAL_MONEY }</td>
            <!--
            <td style="text-align:right"><strong>实洋大写:</strong></td>
            <td class="td_left"  colspan=5 ></td> -->
        </tr>

        <tr class = "tr1">
            <td colspan=2 style="text-align:right"><strong>退回日期:</strong></td>
            <td colspan=3 class="td_left" >&nbsp;&nbsp;${status.data.RECEIVE_MAN }</td>
            <td style="text-align:right"><strong>总应收款:</strong></td>
            <td colspan=3 class="td_left" width="70px">&nbsp;&nbsp;${status.data.RECEIVE_TEL}</td>
            <td style="text-align:right"><strong>总包册数:</strong></td>
            <td colspan=3 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_AMOUNT }</td>
        </tr>

        <tr class = "tr1">
            <td colspan=2 style="text-align:right"><strong>电话:</strong></td>
            <td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.RECEIVE_MAN }</td>
            <td style="text-align:right"><strong>联系人:</strong></td>
            <td colspan=2 class="td_left" width="70px">&nbsp;&nbsp;${status.data.RECEIVE_TEL}</td>
            <td style="text-align:right"><strong>总&nbsp;品&nbsp;种:</strong></td>
            <td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_COUNT }</td>
            <td style="text-align:right"><strong>总件数:</strong></td>
            <td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_AMOUNT }</td>
        </tr>




        <tr class = "tr1">
            <td colspan=2 style="text-align:right"><strong>业务员:</strong></td>
            <td colspan=2 class="td_left" >&nbsp;&nbsp;${status.data.TOTAL_AMOUNT }</td>
            <td colspan=2 style="text-align:right" class="td_left"><strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</strong></td>
            <td  colspan=9>&nbsp;&nbsp;${status.data.MEMO}</td>

        </tr>
        <tr>
            <td width="30px"></td>
            <td width="30px"></td>
            <td width="130px"></td>
            <td width="60px"></td>
            <td width="80px"></td>
            <td width="80px"></td>
            <td width="70px"></td>
            <td width="50px"></td>
            <td width="50px"></td>
            <td width="80px"></td>
            <td width="50px"></td>
            <td width="50px"></td>
        </tr>
        <tr height=10px>
        </tr>
        <tr>
            <td colspan="12">请仔细核对货物品种、数量、配书，如有货物与单据不符请及时与我公司联系。</td>
        </tr>
        <tr>
            <td colspan="12"><hr width=850px align="left"  /></td>
        </tr>
        <tr>
            <td style="text-align:center" width="35px"><strong>序号</strong></td>
            <td colspan=2 class="td_left" width="130px"><strong>书号</strong></td>
            <td colspan=2 width="100px"><strong>商品名称</strong></td>
            <td width="80px"><strong>出版社</strong></td>
            <td style="text-align:center"> <strong>定价</strong></td>
            <td style="text-align:center"><strong>折扣</strong></td>
            <td style="text-align:center"><strong>数量</strong></td>
            <td style="text-align:center"><strong>码洋</strong></td>
            <td style="text-align:center"><strong>实洋</strong></td>
            <td style="text-align:left"><strong>包册数</strong></td>
        </tr>
        <tr>
            <td colspan="12"><hr width=850px align="left" /></td></tr>
        </tr>
        <c:forEach items="${status.dataList}" var="temp" >
            <tr>
                <td style="text-align:center">${temp.ROWNUM}</td>
                <td colspan=2>${temp.H_ISBN}</td>
                <td colspan=2>${temp.H_NAME}</td>
                <td >${temp.PUB_NAME}</td>
                <td style="text-align:center">${temp.H_PRICE}</td>
                <td style="text-align:center">${temp.H_DISCOUNT}</td>
                <td style="text-align:center">${temp.H_AMOUNT}</td>
                <td colspan="2"  style="text-align:center">${temp.TOTAL_MONEY_ITEM}</td>
                <td style="text-align:left">${temp.REAL_MONEY_ITEM}</td>
                <td style="text-align:left">${temp.PACKNUM}</td>
                <!-- <td style="text-align:left">${temp.SHELF_ID}</td>-->
            </tr>
            <tr height=10px>
            </tr>
        </c:forEach>
        <tr height=10px>
        </tr>
        <tr >
            <td class="td_right" colspan=2 width="70px"><strong>制单人:</strong></td>
            <td class="td_left"  colspan=2>${status.data.INPUT_MAN }</td>
            <td class="td_right" ><strong>审核人:</strong></td>
            <td class="td_left"  colspan=2>${status.data.VERIFY_MAN }</td>
            <td class="td_right" ><strong>出库人:</strong></td>
            <td class="td_left"  colspan=3>${status.data.STOCK_MAN }</td>
        </tr>
        <tr >
            <td colspan="12"><hr width=850px align="left"  /></td>
        </tr>
        <tr >
            <td class="td_right" colspan=2><strong>户&nbsp;&nbsp;&nbsp;名:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.COM_PRINTNAME}</td>
            <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;联系人:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.COM_PRINTNAME }</td>
            <td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;编:</strong></td>
            <td class="td_left"  colspan=3>${status.Company.COM_ZIP}</td>
        </tr>
        <tr >
            <td class="td_right" colspan=2><strong>地&nbsp;&nbsp;&nbsp;址:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.COM_ADDRESS }</td>
            <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;话:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.COM_TEL}</td>
            <td class="td_right" ><strong>传&nbsp;&nbsp;&nbsp;真:</strong></td>
            <td class="td_left"  colspan=3>${status.Company.COM_FAX}</td>
        </tr>
        <tr >
            <td class="td_right" colspan=2><strong>开户行:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.ACCOUNT_BANK1}</td>
            <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;账&nbsp;&nbsp;&nbsp;号:</strong></td>
            <td class="td_left"  colspan=2>${status.Company.ACCOUNT_NO1}</td>
            <td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;箱:</strong></td>
            <td class="td_left"  colspan=3>${status.Company.ACCOUNT_NO1 }</td>
        </tr>
        <tr >
            <td colspan="12"><hr width=850px align="left" /></td>
        </tr>
        <tr height=10px></tr>
        <tr >
            <td class="td_right" colspan=2 ><strong>验&nbsp;&nbsp;&nbsp;书:</strong></td>
            <td class="td_left"  ></td>
            <td class="td_right" ><strong>会&nbsp;&nbsp;&nbsp;计:</strong></td>
            <td class="td_left"  ></td>
            <td class="td_right" ><strong>经手人:</strong></td>
            <td class="td_left"  colspan=2></td>
            <td class="td_right" ><strong>收货人:</strong></td>
            <td class="td_left"  colspan=3></td>
        </tr>
        <tr height=10px></tr>
        <tr>
            <td colspan="12">请仔细核对货物品种、数量、金额，如有货物与单据明细不符，请及时与我公司人员联系！！！</td>
        </tr>
        <tr height=10px></tr>
        <tr>
            <td colspan="12" align="right">
                <span style="font-size: 11px ;color: #9BA4AF">技术支持:</span>
                <span style="font-size: 12px ;color: #9BA4AF">上海爱你特科技  www.ainit.cn</span>
            </td>
        </tr>
        <c:if test="${status.count!=fn:length(orderArray)}">
            <tr style="page-break-after: always;height:1px;"></tr>
        </c:if>
    </c:forEach>
</table>
</body>
</html>